package com.company.适配器模式2;

public class Adapter implements MyFun{

    private Funner funner;

    public Adapter(Funner funner) {
        this.funner = funner;
    }

    @Override
    public void add(Object... objects) {
        for (Object object : objects) {
            funner.save(object);
        }

    }

    @Override
    public void remove(Object... objects) {
        for (Object object : objects) {
            funner.delete(object);
        }
    }
}
